package com.ruoyi.system.domain.upe;

import java.util.Hashtable;

public class State {
	// 状态英文名
	public String name;
	
	// 状态中文名
	public String alias;
	
	// 状态描述
	public String description;
	
	/*
	状态类型
	singleaudit： 单人审批
	shunsign：多人顺签，多个用户按顺序签字、现有顺序在流程模板的节点中定义
	huisign：多人会签，多个用户不按顺序签字
	notice：阅知，本节点不作为流转的条件、只是发送一个待办告知，该待办是否处理不影响环节流程
	*/
	public String type;
	
	// 状态显示对话框定义,可重载默认显示对话框定义
	public Hashtable<String, OAttribute> opt_attributes;
	
	// 时效，单位：分钟
	public int timecost;
	
	public State() {
		
	}
	
	public State(String name, String alias, String description, String type, Hashtable<String, OAttribute> opt_attributes, int timecost) {
		this.name=name;
		this.alias=alias;
		this.description=description;
		this.type=type;
		this.opt_attributes=opt_attributes;
		this.timecost=timecost;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Hashtable<String, OAttribute> getOpt_attributes() {
		return opt_attributes;
	}

	public void setOpt_attributes(Hashtable<String, OAttribute> opt_attributes) {
		this.opt_attributes = opt_attributes;
	}

	public int getTimecost() {
		return timecost;
	}

	public void setTimecost(int timecost) {
		this.timecost = timecost;
	}

	@Override
	public String toString() {
		return "State [name=" + name + ", alias=" + alias + ", description="
				+ description + ", type=" + type + ", opt_attributes="
				+ opt_attributes + ", timecost=" + timecost + "]";
	}
	
}
